import request from '@/utils/request'
import {projectApisUrl, technicalDomainUrl} from '../config'
/**
 * 双优化实施列表
 * @param parameter
 */
export function getImplementationList(data){
  return request({
    url: projectApisUrl+'/project/implementation/list',
    method: 'post',
    data
  })
}

/**
 * 双优化实施统计
 * @param
 */
export function getImplementationTotal(data){
  return request({
    url: projectApisUrl+'/project/implementation/implement-statistics',
    method: 'post',
    data
  })
}

/**
 * 双优化实施新增
 * @param
 */
export function addImplementation(data){
  return request({
    url: projectApisUrl+'/project/implementation',
    method: 'post',
    data:data
  })
}

/**
 * 双优化实施销项
 * @param
 */
export function editImplementation(data){
  return request({
    url: projectApisUrl+'/project/implementation/apple-destroy',
    method: 'post',
    data:data
  })
}

/**
 * 双优化实施推优
 * @param
 */
export function applyPromotion(data){
  return request({
    url: projectApisUrl+'/project/implementation/apple-promotion',
    method: 'post',
    data:data
  })
}
/**
 * 双优化实施打印
 * @param
 */
export function applyPromotionPrint(data){
  return request({
    url: projectApisUrl+'/project/implementation/doc',
    method: 'get',
    params:data
  })
}

/**
 * 更新双优化实施销项
 * @param
 */
export function updateImplementation(data){
  return request({
    url: projectApisUrl+'/project/implementation/destroy-audit',
    method: 'post',
    data:data
  })
}
/**
 * 更新双优化实施推优
 * @param
 */
export function updatePromotion(data){
  return request({
    url: projectApisUrl+'/project/implementation/promotion-audit',
    method: 'post',
    data:data
  })
}

/**
 * 双优化实施验收
 * @param
 */
export function editImplementAcceptance(data){
  return request({
    url: projectApisUrl+'/project/implementation/acceptance',
    method: 'post',
    data:data
  })
}



/**
 * 双优化实施详情
 * @param
 */
export function getImplementationDetails(id){
  return request({
    url: projectApisUrl+'/project/optimization/detail',
    method: 'get',
    params: id
  })
}

/**
 * 双优化实施效益统计
 * @param
 */
export function getImplementationBenefitTotal(data){
  return request({
    url: projectApisUrl+'/project/implementation/implement-benefit-statistics',
    method: 'post',
    data
  })
}

/**
 * 双优化附件删除
 * @param
 */
export function deleteImplementationFile(data){
  return request({
    url: projectApisUrl+'/project/implementation/fileDelete',
    method: 'post',
    data:data
  })
}